import request from '@/utils/request'



//提交订单数据
export function addByUser(data) {
  return request({
    'url': '/system/reviews/addByUser',
    'method': 'post',
	 data
  })
}

// 获取商品评价list
export function getReviewsList(data){
  return request({
    'url': '/system/reviews/getReviewsList',
    'method': 'post',
	 data:data
  })
}


// 编辑订单信息
export function editLikeCount(data) {
  return request({
    url: '/system/reviews/editReviews',
    method: 'put',
    data: data
  })
}

// 统计评分平均值
export function averageRating() {
  return request({
    url: '/system/reviews/getAverageRating',
    method: 'get'
  })
}